import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl";

const JKTURL = BASEURL.JKTURL;

const consultationApi = {
  /**查询所有资讯列表 */
  queryall(params) {
    let url = JKTURL + "/consultation/list";
    return myaxios.get(url, params);
  },
  /**通过id查询资讯详情 */
  queryId(params) {
    let url = JKTURL + "/consultation/ById";
    return myaxios.get(url, params);
  },
  // 新增资讯
  add(params) {
    let url = JKTURL + "/consultation/add";
    return myaxios.post(url, params);
  },
  /** 多条件查询资讯列表 */
  query(params) {
    let url = JKTURL + "/consultation/Query";
    return myaxios.get(url, params);
  },
  /** 删除资讯 */
  del(params) {
    let url = JKTURL + "/consultation/del";
    return myaxios.get(url, params);
  },
  /** 修改资讯 */
  update(params) {
    let url = JKTURL + "/consultation/update";
    return myaxios.post(url, params);
  },

};

export default consultationApi;
